/**
 * Generate time : 2011-06-14 13:55:49
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cl.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCLSurveyPoint
 * 
 */
public class ZMCLSurveyPoint extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdSurveypointCode = " "; /* 巡检点编号 */
	private String fdSurveypointName = " "; /* 巡检点名称 */
	private String fdPosition = " "; /* 巡检点位置 */
	private String fdSmartphone = " "; /* 井下电话 */
	private String fdStatus = " "; /* 状态 */
	private String fdRemark = " "; /* 备注 */
	private String fdPathName = " "; /* 巡检路线名称 */
	private String fdSurveyPointInfo = " "; /* 巡检点信息 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSurveypointCode");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("巡检点编号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSurveypointName");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("巡检点名称");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPosition");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("巡检点位置");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSmartphone");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("井下电话");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdStatus");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("状态");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRemark");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("备注");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPathName");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("巡检路线名称");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSurveyPointInfo");
		eiColumn.setFieldLength(230);
		eiColumn.setDescName("巡检点信息");
		eiMetadata.addMeta(eiColumn);
	}

	/**
	 * the constructor
	 */
	public ZMCLSurveyPoint() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdSurveypointCode - 巡检点编号
	 * 
	 * @return the fdSurveypointCode
	 */
	public String getFdSurveypointCode() {
		return this.fdSurveypointCode;
	}

	/**
	 * set the fdSurveypointCode - 巡检点编号
	 */
	public void setFdSurveypointCode(String fdSurveypointCode) {
		this.fdSurveypointCode = fdSurveypointCode;
	}

	/**
	 * get the fdSurveypointName - 巡检点名称
	 * 
	 * @return the fdSurveypointName
	 */
	public String getFdSurveypointName() {
		return this.fdSurveypointName;
	}

	/**
	 * set the fdSurveypointName - 巡检点名称
	 */
	public void setFdSurveypointName(String fdSurveypointName) {
		this.fdSurveypointName = fdSurveypointName;
	}

	/**
	 * get the fdPosition - 巡检点位置
	 * 
	 * @return the fdPosition
	 */
	public String getFdPosition() {
		return this.fdPosition;
	}

	/**
	 * set the fdPosition - 巡检点位置
	 */
	public void setFdPosition(String fdPosition) {
		this.fdPosition = fdPosition;
	}

	/**
	 * get the fdSmartphone - 井下电话
	 * 
	 * @return the fdSmartphone
	 */
	public String getFdSmartphone() {
		return this.fdSmartphone;
	}

	/**
	 * set the fdSmartphone - 井下电话
	 */
	public void setFdSmartphone(String fdSmartphone) {
		this.fdSmartphone = fdSmartphone;
	}

	/**
	 * get the fdStatus - 状态
	 * 
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}

	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}

	/**
	 * get the fdRemark - 备注
	 * 
	 * @return the fdRemark
	 */
	public String getFdRemark() {
		return this.fdRemark;
	}

	/**
	 * set the fdRemark - 备注
	 */
	public void setFdRemark(String fdRemark) {
		this.fdRemark = fdRemark;
	}

	/**
	 * @return the fdPathName
	 */
	public String getFdPathName() {
		return fdPathName;
	}

	/**
	 * @param fdPathName
	 *            the fdPathName to set
	 */
	public void setFdPathName(String fdPathName) {
		this.fdPathName = fdPathName;
	}

	/**
	 * @return the fdSurveyPointInfo
	 */
	public String getFdSurveyPointInfo() {
		return fdSurveyPointInfo;
	}

	/**
	 * @param fdSurveyPointInfo
	 *            the fdSurveyPointInfo to set
	 */
	public void setFdSurveyPointInfo(String fdSurveyPointInfo) {
		this.fdSurveyPointInfo = fdSurveyPointInfo;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdSurveypointCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSurveypointCode")), fdSurveypointCode));
		setFdSurveypointName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSurveypointName")), fdSurveypointName));
		setFdPosition(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPosition")), fdPosition));
		setFdSmartphone(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSmartphone")), fdSmartphone));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemark")), fdRemark));
		setFdPathName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPathName")), fdPathName));
		setFdSurveyPointInfo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSurveyPointInfo")), fdSurveyPointInfo));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdSurveypointCode", StringUtils.toString(fdSurveypointCode, eiMetadata.getMeta("fdSurveypointCode")));
		map.put("fdSurveypointName", StringUtils.toString(fdSurveypointName, eiMetadata.getMeta("fdSurveypointName")));
		map.put("fdPosition", StringUtils.toString(fdPosition, eiMetadata.getMeta("fdPosition")));
		map.put("fdSmartphone", StringUtils.toString(fdSmartphone, eiMetadata.getMeta("fdSmartphone")));
		map.put("fdStatus", StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));
		map.put("fdRemark", StringUtils.toString(fdRemark, eiMetadata.getMeta("fdRemark")));
		map.put("fdPathName", StringUtils.toString(fdPathName, eiMetadata.getMeta("fdPathName")));
		map.put("fdSurveyPointInfo", StringUtils.toString(fdSurveyPointInfo, eiMetadata.getMeta("fdSurveyPointInfo")));

		return map;

	}
}